<div class="top-bar">
  <h1>Index events</h1>
  <div class="breadcrumbs">
    <a href="/events">events</a> /
    イベント一覧
  </div>
</div><br />
<div align="right"><a href="/events/new">New event<img src="/images/adminpage/add-icon.gif" width="16" height="16" alt="Add" /></a></div>
<div class="table">
  <img src="/images/adminpage/bg-th-left.gif" width="8" height="7" alt="" class="left" />
  <img src="/images/adminpage/bg-th-right.gif" width="7" height="7" alt="" class="right" />
  <table class="listing form" cellpadding="0" cellspacing="0">
    <tr>
        <th class="first" width="177">イベント名</th>
        <th class="last" width="80">操作</th>
    </tr>
<% for event in @events %>
    <tr <%= cycle('class="bg"', "") %> >
      <td class="first style1"><%=h event.name %></td>
      <td class="last">
        <a href="/events/<%= event.id %>"><img src="/images/adminpage/magnifier.png" width="16" height="16" alt="Show" /></a>
        <a href="/events/<%= event.id %>" onclick="<%= put_delete_java_script('本当に削除してよろしいですか?') %>"><img src="/images/adminpage/delete.png" width="16" height="16" alt="Destroy" /></a>
      </td>
    </tr>
<% end %> 

    <!--  <tr class="bg"> -->
  </table>
</div>
